//
//  OrderDetailModel.m
//  LiverClient
//
//  Created by dongshangtong on 16/5/10.
//  Copyright © 2016年 朱亚杰. All rights reserved.
//

#import "XLOrderDetailModel.h"
#import "YCOrderModel.h"
// 除了百倍爱心卡和在线咨询的订单，其余的全部订单都用这个模型 ；
@implementation XLOrderDetailModel
+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"createDate":@"CREATE_DATE",
             @"hosAddress":@"HOS_ADDRESS",
             @"hosId":@"HOS_ID",
             @"hosName":@"HOS_NAME",
             @"hosPhone":@"HOS_PHONE",
             @"hosPic":@"HOS_PIC",
             @"levelName":@"LEVEL_NAME",
             @"memberName":@"MEMBER_NAME",
             @"orderCode":@"ORDER_CODE",
             @"orderDate":@"ORDER_DATE",
             @"orderId":@"ORDER_ID",
             @"orderMoney":@"ORDER_MONEY",
             @"orderStatus":@"ORDER_STATUS",
             @"serveId":@"SERVE_ID",
             @"serveName":@"SERVE_NAME",
             @"typeName":@"TYPE_NAME",
             @"personName":@"PERSON_NAME",
             @"expertName":@"EXPERT_NAME"
             };
}

/*
 
 cl_TranModelDic 将字典和json中的null数据转化为 暂无数据
 
 */
-(void)sendOrderDetailRequest:(YCOrderModel*)orderModel Success:(void(^)(id))success Failure:(void(^)(id))failure
{
//    [[UIApplication sharedApplication].keyWindow presentLoadingTips:nil];
//    NSString *member_id =[[NSUserDefaults standardUserDefaults] objectForKey:@"menberId"];
//    NSString *url = @"";
//    NSDictionary *params =@{
//                            @"member_id":member_id,
//                            @"order_id":@"",
//                            @"sj_type":orderModel.sjType,
//                            @"yw_id":yw_id
//                            };
//    
//    [DownloadData post:url SerializerType:1 params:params success:^(NSDictionary* json) {
//        [[UIApplication sharedApplication].keyWindow dismissTips];
//        id orderDetailModel;
//        
//        switch (orderModel.YCServerType) {
//            case YCOrderSJType_OnlineConsultant:
//            {
//                OnlineModel * onlineModel = [OnlineModel mj_objectWithKeyValues:json] ;
//                orderDetailModel = [self cl_TranModelDic:onlineModel modelName:NSStringFromClass([OnlineModel class])] ;
//            }
//                break;
//            case YCOrderSJType_BuyMutualFund:
//            {
//                HundredLoveModel * hundredLoveModel = [HundredLoveModel mj_objectWithKeyValues:json] ;
//                orderDetailModel = [self cl_TranModelDic:hundredLoveModel modelName:NSStringFromClass([HundredLoveModel class])] ;
//            }
//                break;
//            default:
//            {
//                OrderDetailModel * orderDetailModeltemp = [OrderDetailModel mj_objectWithKeyValues:json] ;
//                orderDetailModel = [self cl_TranModelDic:orderDetailModeltemp modelName:NSStringFromClass([OrderDetailModel class])] ;
//            }
//                break;
//        }
//        
//        if (success) {
//            success(orderDetailModel);
//        }
//    } failure:^(NSError *error) {
//        [[UIApplication sharedApplication].keyWindow dismissTips];
//        if (failure) {
//            failure(error);
//        }
//    }];
}
@end






